//
//  ZYCategoryHeaderView.m
//  Adorable_Things
//
//  Created by huzhiyan on 16/1/16.
//  Copyright © 2016年 Banana Inc. All rights reserved.
//

#import "ZYCategoryHeaderView.h"

@implementation ZYCategoryHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _backItemButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _backItemButton.frame = CGRectMake(10, 10, 25, 25);
        [_backItemButton setImage:[UIImage imageNamed:@"iconfont-fanhui.png"] forState:(UIControlStateNormal)];
        [self addSubview:_backItemButton];
        
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 44, kWidth, 1)];
        label.backgroundColor = [UIColor grayColor];
        [self addSubview:label];
    }
    return self;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
